#include <stdio.h>
#include <math.h>
int DtoO(int n);
int main ()
{
	int a,b;
	printf("Pleaase input a decimal numeral:");
	scanf("%d",&a);
	printf("%d in Decimalism=%d in Octonary",a,DtoO(a));
	return 0;
}

int DtoO(int n)
{
	int i,s=0,t=0;
	while(n)
	{
		i=n%8;
		n=n/8;
		s=s+(i*pow(10,t));
		t+=1;
	}
	return s;
}

